package com.xmmj.baselibrary.utils.adapter.recyclerview;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

import com.xmmj.baselibrary.R;

/**
 * 空提示控件
 */
public class NoDataView extends RelativeLayout implements INoDataView {

    public NoDataView(Context context) {
        this(context, null);
    }

    public NoDataView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public NoDataView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(R.layout.no_data_view);
    }

    private void initView(int layoutId) {
        inflate(getContext(), layoutId, this);
    }

    @Override
    public void setLayout(int layoutId) {
        if (layoutId > 0) {
            removeAllViews();
            initView(layoutId);
        }
    }

    @Override
    public View getView() {
        return this;
    }

    @Override
    public void setBackgroundColor(int color) {

    }

    @Override
    public void setBackground(Drawable background) {

    }

    @Override
    public void setBackgroundResource(int resid) {

    }

    @Override
    public void setNoDataImageSize(int width, int height) {

    }

    @Override
    public void setNoDataSrc(int resId) {

    }

    @Override
    public void setNoDataSrc(Drawable d) {

    }

    @Override
    public void setNoDataText(String str) {

    }

    @Override
    public void setNoDataSecondText(String str) {

    }

    @Override
    public void setTextClickListener(OnClickListener listener) {

    }

    @Override
    public void setRefreshEnable(boolean enable) {

    }

    @Override
    public void setRefreshClickListener(OnClickListener listener) {

    }

}